package com.dyh.quickdemozwei.avgDemo;

import java.util.HashMap;
import java.util.Map;

public class AvgScenario {

    public Map<String, AvgScene> seceneMap = new HashMap<>();

    public AvgScene currentScene;

    public boolean continueScene = false;

    public void execute() {

        for (;;){
            if (currentScene==null)
                break;
            currentScene.execute();
            if (!continueScene)
                break;
            continueScene = false;
        }

    }
}
